build a circuit